package hy.service;

import hy.beans.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class OrderService {
	@Autowired
	MyTask t;
	@Transactional//使用Jta事务管理器
	public void processOrder(Order o) throws Exception {
		t.order(o);
		int a=1/0;
		t.item(o);
	}
}